﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using EzDesk.Apps.Data.ProjectModule;
using EzDesk.Utility.Web.Extensions;

namespace EzDesk.DevHelper.DebugLibrary
{
    public class EzDeskProjectInitial: EzDeskInitial, IEzDeskInitial
    {
        private EzDeskProjectContainer projectDb = new EzDeskProjectContainer();

        public EzDeskProjectInitial()
        {
            this.projectDb = new EzDeskProjectContainer();
        }

        public void Initialize()
        {
            Debug.WriteLine("开始初始化 项目 模块...");

            projectDb.DeleteTable("DailyWorksSet");
            projectDb.DeleteTable("MemberInProjectSet");
            projectDb.DeleteTable("WorkitemSet");
            projectDb.DeleteTable("TaskSet");
            projectDb.DeleteTable("ProjectSet");
            projectDb.SaveChanges();

            Debug.WriteLine("初始化 项目 模块结束...");
        }
        
        

        public void AddInitializeModule(IEzDeskInitial EzDeskInitial)
        {
            throw new NotImplementedException();
        }
    }
}
